<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="loginSuccess.jsp" method="get">
		用户名：<input type="text" id ="username" name = "username">
		密码：<input type="password" id = "password" name = "password">
		<input type="submit" value = "提交">
	</form>
	<%
		Object count = application.getAttribute("count");
		if(count == null){
			application.setAttribute("count", new Integer(1));
		}else{
			application.setAttribute("count", ((Integer)count).intValue()+1);
		}
		Integer ocount =(Integer)application.getAttribute("count");
		out.print("访问页面的总次数是：" + ocount.intValue());
	%>
</body>
</html>